package com.lx.mobileplayer.mvp.view.activity

import android.view.LayoutInflater
import com.lx.mobileplayer.R
import kotlinx.android.synthetic.main.activity_toolbar.*
import kotlinx.android.synthetic.main.tool_bar.*

/**
 * 类说明：带Toolbar的Activity
 * Created by liuxiong on 2019/4/24.
 */
open abstract class ToolbarActivity :BaseActivity(){


    override fun getContentLayoutId(): Int {
        return R.layout.activity_toolbar
    }

    override fun initView() {
        super.initView()
        //初始化Toolbar
        initToolbar()

        LayoutInflater.from(getMContext()).inflate(getLayoutId(),flt_content,true)

    }

    abstract fun initToolbar()

    abstract fun getLayoutId(): Int
}